package com.xja.mapper;

import com.xja.entity.ContentType;
import com.xja.entity.CourseInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseInfoMapper {
    int deleteByPrimaryKey(Integer cid);

    int insert(CourseInfo record);

    int insertSelective(CourseInfo record);

    CourseInfo selectByPrimaryKey(Integer cid);

    int updateByPrimaryKeySelective(CourseInfo record);

    int updateByPrimaryKey(CourseInfo record);

    List<CourseInfo> getCourses();

    int addCourse(CourseInfo courseInfo);

    CourseInfo getCourseById(Integer cid);

    List<ContentType> getCourseType();

    void updateStatus();
}